package multigest.vocappulary;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.widget.RatingBar;
import android.widget.TextView;

public class VocResultActivity extends Activity {

	private TextView new_result_tv;
	private RatingBar rating;
	private int new_result;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_voc_result);
		
		new_result_tv = (TextView) findViewById(R.id.newResult);
		rating = (RatingBar) findViewById(R.id.rating_result);
	
		new_result = getIntent().getIntExtra("new_result", 0);
		
		new_result_tv.setText("New Result: "+new_result+" %");
		rating.setRating(((float)new_result)/20f);
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		getMenuInflater().inflate(R.menu.voc_result, menu);
		return true;
	}

}
